/**
 * Created by JetBrains PhpStorm.
 * User: Nhan
 * Date: 4/11/12
 * Time: 5:19 PM
 * To change this template use File | Settings | File Templates.
 */
jQuery(document).ready(function() {

	var items = jQuery('.slides_container a').filter(function() {

		if (jQuery(this).attr('href'))

			return jQuery(this).attr('href').match(/\.(jpg|png|gif|JPG|GIF|PNG|Jpg|Gif|Png|JPEG|Jpeg)/);

	});

	if (items.length > 1){

		var gallerySwitch="[alltogethernow]";

	}else{

		var gallerySwitch="";

	}

	items.attr('rel','zoom'+gallerySwitch);

	jQuery("a[rel^='zoom']").prettyPhoto({

		wmode: 'transparent',

		theme: 'dark_square',

		deeplinking: false,

		opacity: 0.6,

		slideshow: 4000

	});

});